import { ApiProperty } from '@nestjs/swagger';
import { IsDecimal, IsNotEmpty, IsString, IsUUID, Max, Min } from 'class-validator';

export class RateRatingDto {
  @IsNotEmpty()
  @ApiProperty()
  @IsUUID()
  bizUuid: string;

  @IsNotEmpty()
  @ApiProperty()
  @Max(100)
  @Min(0)
  score: number;
}

export class RateBatchShowDto {
  @IsNotEmpty()
  @ApiProperty()
  @IsString()
  bizUuidList: string;
}

export class RateShowByLoginDto {
  @IsNotEmpty()
  @ApiProperty()
  @IsString()
  bizUuid: string;
}
